#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
//学会用MSDN来学习函数
//l例子一：strcpy

//char *strcpy( char *strDestination, const char *strSource );

//int main()
//{
//	char arr1[20] = { 0 };
//	char arr2[] =  "hello" ;
//	printf("%s\n", arr1);
//	strcpy(arr1, arr2);
//	printf("%s\n", arr1);//将arr2的值赋给arr1
//	return 0;
//}


//memset

int main()
{
	char arr1[] = "welcome to chnegdu";
	printf("%s\n", arr1);
	memset(arr1, 'g', 7);
	printf("%s\n", arr1);
	memset(arr1 + 11, 'x', 7);//memset(void *dest, int c, size_t count );
	printf("%s\n", arr1);
	return 0;
}